package com.cai.service;

import com.cai.entity.PageResult;
import com.cai.entity.QueryPageBean;
import com.cai.pojo.Permission;
import com.cai.pojo.Role;

import java.util.List;

/**
 * 角色管理
 */
public interface RoleService {
    //分页查询
    public PageResult pageQuery(QueryPageBean queryPageBean);

    public List<Permission> findAll();

    public void add(Role role, Integer[] roleIds);

    public Role findById(Integer id);

    public List<Integer> findPermissionIdsByRoleId(Integer id);

    public void edit(Role role, Integer[] permissionIds);

    public void delete(Integer id);
}
